<?php
namespace Index\Controller;
use Think\Controller;
class IndexController extends Controller {
    public function index(){

    	$this->display();

    }

    public function channelPage() {

    	$channel_id = I("get.c_id",0);
    	$model = M('channel');
    	$data = $model->where("id=".$channel_id)->select();
        $data = $data[0];
    	if (isset($data)) {
           $data["sound_count"] = str_change_info($data["sound_count"]);
           $data["follow_count"] = str_change_info($data["follow_count"]);
           $data["share_count"] = str_change_info($data["share_count"]);
    		$this->assign('data',$data);
    	}
        $this->display();
    }

   






}